<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('member','header'); ?>
<body>
<div id="main">
  <?php include template('pay' , 'left'); ?>
  <div id="right">
    <!--面包屑导航-->
    <p id="position"><strong>当前位置：</strong><a href="<?php echo $M['url'];?>">财务管理</a>交易记录</p>
    <!--欢迎页基本信息-->
    <div class="clear"></div>
    <div class="clear"></div>
    <table width="98%" cellpadding="0" cellspacing="1" class="table_form">
      <caption>交易类型</caption>
     <td class="align_c">
<?php if(($type == 'amount' || $type == '') ) { ?>
            <input type="radio" onclick="redirect('<?php echo $M['url'];?>pay.php?type=amount')" value="amount" name="type" checked="checked"/> 资金 
            <?php } else { ?>
            <input type="radio" onclick="redirect('<?php echo $M['url'];?>pay.php?type=amount')" value="amount" name="type" checked="checked"/> 资金 
            <?php } ?>
        <?php if(($type == 'point') ) { ?>
        <input type="radio" onclick="redirect('<?php echo $M['url'];?>pay.php?type=point')" checked="checked" value="point" name="type" /> 点数
        <?php } else { ?>
        <input type="radio" onclick="redirect('<?php echo $M['url'];?>pay.php?type=point')" value="point" name="type" /> 点数
        <?php } ?>

</td>
    </table>
    <!--列表样式-->
    <table width="98%" cellpadding="0" cellspacing="1" class="table_list">
      <caption>交易记录</caption>
      <tr>
        <th style="width:150px;">交易时间</th>
<th style="width:80px;">交易类型</th>
        <th style="width:100px;">交易金额</th>
<th>交易事由</th>
      </tr>
      <tr><?php if(!empty($exchanges[info])) { ?>
  <?php if(is_array($exchanges['info'])) foreach($exchanges['info'] AS $exchange) { ?>
        <td><?php echo $exchange['time'];?></td>
<td><?php echo $exchange['type_type'];?></td>
        <td><?php echo $exchange['number'];?></td>
        <td><?php echo $exchange['note'];?></td>
      </tr><?php } ?>
  <?php } else { ?>
<tr><td colspan="5">暂无记录</td></tr>
  <?php } ?>
    </table>
    <div class="button_box">
    </div>
    <div id="pages"><?php echo $pages;?></div>
    <!--表单样式-->
  </div>
</div>
<div class="clear"></div>
<?php include template('member' , 'footer'); ?>
